using System;
using System.Collections;

namespace Com.CMS263.PO
{
    #region CustomerList

    /// <summary>
    /// CustomerList object for NHibernate mapped table 'CustomerList'.
    /// </summary>
    public class CustomerList
    {
        #region Member Variables

        protected int _id;
        protected string _usermobile;
        protected string _userpass;
        protected string _useremail;
        protected DateTime _addDate;
        protected string _userName;
        protected string _remark;
        protected bool _state;


        #endregion

        #region Constructors

        public CustomerList() { }

        public CustomerList(string UserMobile, string UserPass, string UserEmail, DateTime addDate, string UserName, string Remark, bool State)
        {
            this._usermobile = UserMobile;
            this._userpass = UserPass;
            this._useremail = UserEmail;
            this._addDate = addDate;
            this._userName = UserName;
            this._remark = Remark;
            this._state = State;

        }

        #endregion

        #region Public Properties

        public virtual int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public virtual string UserMobile
        {
            get { return _usermobile; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for UserMobile", value, value.ToString());
                _usermobile = value;
            }
        }

        public virtual string UserPass
        {
            get { return _userpass; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for UserPass", value, value.ToString());
                _userpass = value;
            }
        }

        public virtual string UserEmail
        {
            get { return _useremail; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for UserEmail", value, value.ToString());
                _useremail = value;
            }
        }



        public virtual DateTime AddDate
        {
            get { return _addDate; }
            set { _addDate = value; }
        }

        public virtual string UserName
        {
            get { return _userName; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for UserName", value, value.ToString());
                _userName = value;
            }
        }


        public virtual string Remark
        {
            get { return _remark; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for Remark", value, value.ToString());
                _remark = value;
            }
        }

        public virtual bool State
        {
            get { return _state; }
            set
            {
                _state = value;
            }
        }





        #endregion
    }
    #endregion
}